placesview: Open location even if mount was not found
authorOndrej Holy <oholy@redhat.com>
Tue, 13 Apr 2021 13:55:19 +0000 (15:55 +0200)
committerOndrej Holy <oholy@redhat.com>
Tue, 13 Apr 2021 15:33:03 +0000 (17:33 +0200)
commitddeabc7e19e0e0e18acd842fa28dc9319b3a94cf
tree961de0603e2b26ebab47c0ac78cfe1ee60ba21e8
parentf5d90826f32ef081bf1a32130ba7cfdf94825ec4
placesview: Open location even if mount was not found

Some locations have to be mounted, but their mounts are not user-visible
(e.g. smb-browse). Though this is maybe a bit weird, it is how it works
for years. The problem is that the commit 267ea755, which tries to get the
default location for opening, caused regression as it doesn't expect such
possibility. Before this commit, such locations were opened without any
issue, but nothing happens currently after clicking to "Connect" except of
clearing the "Connect to Server" entry. Let's fallback to the original
location if the mount was not found to fix this regression.

Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/1811
gtk/gtkplacesview.c